﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace DEMO.WCF_API.Contracts
{
    [ServiceContract]
    public interface IEmployee
    {
        [OperationContract]
        IEnumerable<DEMO.WCF_API.Contracts.Employee> getEmployees();
        [OperationContract]
        DEMO.WCF_API.Contracts.Employee getEmployeeById(Int64 EmployeeID);
    }
    [DataContract]
    public class Employee
    {
        [DataMember]
        public Int64 EmployeeID { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public string Email { get; set; }
    }
}
